#include<iostream>
using namespace std;
string s1, s2;
int a[505], b[505], c[505],la, lb, lc;
const int N = 1e6 + 10;
int main() {
	cin >> s1 >> s2;
	la = s1.length(), lb = s2.length();
	for (int i = 0; i < la; i++) a[la - i] = s1[i] - '0';
	for (int i = 0; i < lb; i++) b[lb - i] = s2[i] - '0';
	lc = max(la, lb) + 1;
	for (int i = 1; i < lc; i++) {
		c[i] += a[i] + b[i];
		c[i + 1] = c[i]/10;
		c[i] = c[i] % 10;
	}
	if (c[lc] == 0 && lc > 0) lc--;
	for (int i = lc; i > 0; i--)
		cout << c[i];
	return 0;
}
